package com.ticket.quartz.task;

import com.ticket.system.service.IYanchuOrderService;
import com.ticket.system.service.IYanchuSessionService;
import com.ticket.system.service.IYanchuStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("orderTask")
public class OrderTask {
    @Autowired
    private IYanchuOrderService iYanchuOrderService;
    @Autowired
    private IYanchuStatisticsService iYanchuStatisticsService;

    @Autowired
    private IYanchuSessionService iYanchuSessionService;

    public void closeExpireOrder()
    {
        iYanchuOrderService.closeExpireOrder();
    }

    public void notifyUserOrder()
    {
        iYanchuSessionService.notifyUserOrder();
    }

    public void staticsOrder()
    {
        iYanchuStatisticsService.staticsPrevOrder(null);
    }
}
